package com.func.domain.task.repository;

import com.func.domain.task.model.entity.TaskEntity;

import java.util.List;

/**
 * <p>
 * ITaskRepository
 * </p>
 *
 * @author Simon
 * @version 2025.03.15.1.0.0
 * @description
 * @since 2025-03-15
 */

public interface ITaskRepository {
    /**
     * 查询发送MQ失败和超时1分钟未发送的MQ
     * @return 未发送的任务消息列表10条
     */
    List<TaskEntity> queryNoSendMessageTaskList();

    void sendMessage(TaskEntity taskEntity);

    void updateTaskSendMessageCompleted(String userId, String messageId);

    void updateTaskSendMessageFail(String userId, String messageId);
}
